<?php

require_once dirname(__FILE__) . '/../Space.php';

class Board_Space_GoToJail extends Board_Space
{
    public function onLand($player)
    {
        $player->getPiece()->setSpace(
            $player->getPiece()
                   ->getSpace()
                   ->getBoard()
                   ->getSpace('Just Visiting')
        );
    }
}
